package com.example.demo.config;

import com.example.demo.resource.PhotoResource;
import org.glassfish.jersey.jackson.JacksonFeature;
import org.glassfish.jersey.media.multipart.MultiPartFeature;
import org.glassfish.jersey.server.ResourceConfig;
import org.springframework.stereotype.Component;

@Component
public class JerseyConfig extends ResourceConfig {

    public JerseyConfig(){
        packages("com.example.demo.resource");
        register(MultiPartFeature.class);
        register(JacksonFeature.class);
        register(MyObjectMapperProvider.class);
    }
}
